package com.zjz.demo.Fuction;

import java.util.function.Function;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/09/10:39
 * @Description: 测试函数式接口
 * @Target: 函数式接口
 */
public class FunctionTest {
    public static void main(String[] args) {
        Function function = (Str)->{return Str;};

        function.apply("dsasd");


        Function sum = s->s+"输出";

        System.out.println(sum.apply("asdasdsa"));

    }
}
